package com.wanxi.controller;

import com.wanxi.entity.Result;
import com.wanxi.vo.PageVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wanxi.entity.ProductEntity;
import com.wanxi.result.CommonResult;
import com.wanxi.util.ToVoUtil;
import com.wanxi.vo.ProductVo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yangjin
 * @date 2022年08月09日 10:32
 */

@RestController
@RequestMapping("/web/product")
@Api(tags = "商品管理")
public class ProductController {

    @GetMapping("/productList")
    @ApiOperation("商品列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "productId",value = "产品Id",paramType = "path",dataType = "Integer"),
            @ApiImplicitParam(name = "productName",value = "产品名称",paramType = "path",dataType = "String"),
            @ApiImplicitParam(name = "commodityId",value = "产品类型Id",paramType = "path",dataType = "Integer"),
            @ApiImplicitParam(name = "label",value = "标签Id",paramType = "path",dataType = "String"),
    })
    public Result productList(Integer productId, String productName, Integer commodityId, String label, PageVo pageVo){

        return new Result("",0,new ProductVo(),10,null);
    }
}
